import request from '@/utils/request'

export function fetchTimerDefineList(data) {
  return request({
    url: '/cloud-weixing/getTimerDefineList',
    method: 'post',
    data
  })
}

export function fetchTimerDefineOne(data) {
  return request({
    url: '/cloud-weixing/getOneTimerDefineDetail',
    method: 'post',
    data
  })
}

export function createTimerDefine(data) {
  return request({
    url: '/cloud-weixing/createOneTimerDefine',
    method: 'post',
    data
  })
}

export function getApplicationList(data) {
  return request({
    url: '/cloud-system/getApplicationList',
    method: 'post',
    data
  })
}

export function updateTimerDefine(data) {
  return request({
    url: '/cloud-weixing/updateOneTimerDefine',
    method: 'post',
    data
  })
}

export function deleteTimerDefine(data) {
  return request({
    url: '/cloud-weixing/deleteOneTimerDefine',
    method: 'post',
    data
  })
}
export function batchDeleteTimerDefine(data) {
  return request({
    url: '/cloud-weixing/batchDeleteTimerDefine',
    method: 'post',
    data
  })
}

export function lockTimerDefine(data) {
  return request({
    url: '/cloud-weixing/lockOneTimerDefine',
    method: 'post',
    data
  })
}

export function unlockTimerDefine(data) {
  return request({
    url: '/cloud-weixing/unlockOneTimerDefine',
    method: 'post',
    data
  })
}

export function batchLockTimerDefine(data) {
  return request({
    url: '/cloud-weixing/batchLockTimerDefine',
    method: 'post',
    data
  })
}

export function batchUnLockTimerDefine(data) {
  return request({
    url: '/cloud-weixing/batchUnLockTimerDefine',
    method: 'post',
    data
  })
}
